/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Mediator;

import java.awt.event.ActionListener;
import javax.swing.JButton;

/**
 *
 * @author Marcel
 */
class BtnBook extends JButton implements Command {
 
    IMediator med;
 
    BtnBook(ActionListener al, IMediator m) {
        super("Book");
        addActionListener(al);
        med = m;
        med.registerBook(this);
    }
 
    public void execute() {
        med.book();
    }
 
}
